﻿package Message.Game
{
    import Framework.Serialize.*;
    import Message.Public.*;
    import flash.utils.*;

    public class SLookPlayerInfo extends Object
    {
        public var miniPlayer:SMiniPlayer;
        public var playerItems:Array;
        public var godHeads:Array;
        public var cellFight:SFightAttribute;
        public var medals:Array;
        public var jewels:Dictionary;
        public var life:int;
        public var mana:int;
        public var experience:Number;
        public var beAdored:int;
        public var beDespised:int;
        public var guildName:String;
        public var titleName:String;
        public var suitSkillId:int;
        public var suitAttackId:int;
        public var clothesCode:int;
        public var wingCode:int;
        public var weaponCode:int;

        public function SLookPlayerInfo()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.miniPlayer.__write(param1);
            SeqPlayerItemHelper.write(param1, this.playerItems);
            SeqPlayerItemHelper.write(param1, this.godHeads);
            this.cellFight.__write(param1);
            SeqIntHelper.write(param1, this.medals);
            MapSeqSJewelHoleInfoHelper.write(param1, this.jewels);
            param1.writeInt(this.life);
            param1.writeInt(this.mana);
            param1.writeLong(this.experience);
            param1.writeInt(this.beAdored);
            param1.writeInt(this.beDespised);
            param1.writeString(this.guildName);
            param1.writeString(this.titleName);
            param1.writeInt(this.suitSkillId);
            param1.writeInt(this.suitAttackId);
            param1.writeInt(this.clothesCode);
            param1.writeInt(this.wingCode);
            param1.writeInt(this.weaponCode);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.miniPlayer = new SMiniPlayer();
            this.miniPlayer.__read(param1);
            this.playerItems = SeqPlayerItemHelper.read(param1);
            this.godHeads = SeqPlayerItemHelper.read(param1);
            this.cellFight = new SFightAttribute();
            this.cellFight.__read(param1);
            this.medals = SeqIntHelper.read(param1);
            this.jewels = MapSeqSJewelHoleInfoHelper.read(param1);
            this.life = param1.readInt();
            this.mana = param1.readInt();
            this.experience = param1.readLong();
            this.beAdored = param1.readInt();
            this.beDespised = param1.readInt();
            this.guildName = param1.readString();
            this.titleName = param1.readString();
            this.suitSkillId = param1.readInt();
            this.suitAttackId = param1.readInt();
            this.clothesCode = param1.readInt();
            this.wingCode = param1.readInt();
            this.weaponCode = param1.readInt();
            return;
        }// end function

    }
}
